package com.example.springboot.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 数据库映射VO
 * <p>
 * <p>
 *
 * @author Zhang.Z
 * @version 2025-09-22
 */
@Entity
@Table(name = "t_user_tab_copy1")
public class UserVO {

    @Id
    private Long id;
    @Column(name = "user_name")
    private String username;
    @Column(name = "create_time")
    private Date createTime;

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }

    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }

    @Override
    public String toString() {
        return "UserVO{" +
                "id=" + id +
                ", name='" + username + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
